package graph.undirectedgraph.adjacencymultilist;

public class AdjEdgeNode {
    private int ivex;
    private AdjEdgeNode ilink;
    private int jvex;
    private AdjEdgeNode jlink;

    public AdjEdgeNode() {
    }

    public AdjEdgeNode(int ivex, int jvex) {
        this.ivex = ivex;
        this.jvex = jvex;
    }

    public AdjEdgeNode(int ivex, AdjEdgeNode ilink, int jvex, AdjEdgeNode jlink) {
        this.ivex = ivex;
        this.ilink = ilink;
        this.jvex = jvex;
        this.jlink = jlink;
    }

    public int getIvex() {
        return ivex;
    }

    public void setIvex(int ivex) {
        this.ivex = ivex;
    }

    public AdjEdgeNode getIlink() {
        return ilink;
    }

    public void setIlink(AdjEdgeNode ilink) {
        this.ilink = ilink;
    }

    public int getJvex() {
        return jvex;
    }

    public void setJvex(int jvex) {
        this.jvex = jvex;
    }

    public AdjEdgeNode getJlink() {
        return jlink;
    }

    public void setJlink(AdjEdgeNode jlink) {
        this.jlink = jlink;
    }
}
